package com.zpb.portal.controller;

import com.zpb.framework.domain.ApiResult;
import com.zpb.framework.service.UploadService;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Description:
 * @Author: zhaopengbo
 * @Date: 2025/9/14
 */
@RestController
@RequestMapping("/upload")
@Slf4j
public class UploadController {
    @Autowired
    private UploadService uploadService;
    @PostMapping
    public ApiResult uploadImg(MultipartFile img) {
        return uploadService.uploadImg(img);
    }

}
